<#if pageSize gt 1>
<nav class="pull-right pagination-lg">
    <ul class="pagination">
        <#if pageNo <= 1>
            <li class="disabled">
                <span aria-hidden="true">&laquo;</span>
            </li>
        <#else >
            <li>
                <a href="/blog/view-${pageNo -1}" aria-label="Next">
                    <span aria-hidden="true">&laquo;</span>
                </a>
            </li>
        </#if>
        <#assign pre=true />
        <#assign next=true/>

        <#list 1..pageSize as no>
            <#if pageNo == no>
                <li class="active"><a href="/blog/view-${no}">${no}</a></li>
            <#elseif no lt 2 || no == pageNo - 1 || no==pageNo+1 || no gt pageSize -2>
                <li ><a href="/blog/view-${no}">${no}</a></li>
            <#elseif pre && no lt pageNo -1>
                <li ><span aria-hidden="true">...</span></li>
                <#assign pre=false />
            <#elseif next && no gt pageNo + 1>
                <li ><span aria-hidden="true">...</span></li>
                <#assign next=false />
            </#if>
        </#list>
        <#if pageNo gt pageSize - 1>
            <li class="disabled">
                <span aria-hidden="true">&raquo;</span>
            </li>
        <#else >
            <li>
                <a href="/blog/view-${pageNo + 1 }" aria-label="Next">
                    <span aria-hidden="true">&raquo;</span>
                </a>
            </li>
        </#if>
    </ul>
</nav>
</#if>